<div class="g12 nodrop" style="margin-bottom: 43px;">

    <div style="width: 100%;">

        <h3>Pregled rječi dana</h3>
        <p style="line-height: 13px;">Rječ DAN-A</p>



        <div class="ex_highlight_row grid">

            <table class="datatable border" cellpadding="0" cellspacing="0" id="example">

                <thead>                      
                    <tr style="background-image: url(<?=$url?>assets/img/sort_row_bg.gif); background-repeat: repeat-x; background-position: 0 0 ;">
                        <th class="tbleft">Autor</th><th>Tekst</th><th>Datum</th><th>Akcija</th> 
                    </tr>
                </thead>

                <tbody>

                    <?
                        foreach($wordofday as $row){?>

                        <tr>
                            <td class="naziv">
                                <? if(strlen($row['author'])>23 ) {echo mb_substr($row['author'], 0, 23, 'UTF-8').'...';}else {echo $row['author'];}?>
                            </td>
                            <td align="left">
                                     <?=$row['text']?>
                            </td>
                            <td class="autor"><?= date('d.m.Y',$row['datetime']);?></td>

                            <td class="akcija">
                                <!--<a href="<?=$url?>wordofday/mediapreview?id=<?=$row['id']?>" class="small" id="<?=$row['id']?>">Pogledaj</a> |-->
                                <a href="<?=$url?>wordofday/newform?id=<?=$row['id']?>" class="small" id="<?=$row['id']?>">Uredi</a> |
                                <a href="javascript:" class="deletewordofday small" id="<?=$row['id']?>">Obriši</a>
                            </td> 
                        </tr>    

                        <?}

                    ?>

                </tbody>

            </table>

        </div>

    </div>

</div>

<style>
    table td, table td.naziv{
        text-align: left; vertical-align: middle; line-height: 11px; padding: 3px 3px;
    }
    table td, table td.autor{
        text-align: left; vertical-align: middle;
    }
    table td, table td.akcija{
        vertical-align: middle;
    }
</style>
